<?php

class Persion {
    public $name = 'lisi';
    protected $age = 22;
    private $money = 1000;
    public function t1(){

    }
    protected function t2(){

    }
    public function intro(){
        echo '我叫:'.$this->name;
    }
}

$lisi = new Persion();
echo $lisi->name;
echo $lisi->age;
echo $lisi->money;
